/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.shopOrderdetail.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_order_detail")
public class ShopOrderDetail {
	
	//date formats
	

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String detailSid;
	@Length(max=50)
	private java.lang.String orderId;
	@Length(max=50)
	private java.lang.String specificationSid;
	@Length(max=50)
	private java.lang.String specificationValue;
	//columns END


	public ShopOrderDetail(){
	}

	public ShopOrderDetail(
		java.lang.String detailSid
	){
		this.detailSid = detailSid;
	}

	

	public void setDetailSid(java.lang.String value) {
		this.detailSid = value;
	}
	
	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "uuid")
	@Column(name = "detail_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getDetailSid() {
		return this.detailSid;
	}
	
	@Column(name = "order_id", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getOrderId() {
		return this.orderId;
	}
	
	public void setOrderId(java.lang.String value) {
		this.orderId = value;
	}
	
	@Column(name = "specification_sid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getSpecificationSid() {
		return this.specificationSid;
	}
	
	public void setSpecificationSid(java.lang.String value) {
		this.specificationSid = value;
	}
	
	@Column(name = "specification_value", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getSpecificationValue() {
		return this.specificationValue;
	}
	
	public void setSpecificationValue(java.lang.String value) {
		this.specificationValue = value;
	}
}

